package com.mvc;

import com.fasterxml.jackson.core.JsonProcessingException;

/**
 * 转换json用
 */
public class JsonUtil {
	public static String toJson(Object object) throws JsonProcessingException {
		return DispatchServlet.getObjectMapper().writeValueAsString(object);
	}
}
